import {NgModule, ErrorHandler} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {IonicApp, IonicModule, IonicErrorHandler} from 'ionic-angular';
   import {servicess} from "../provider/service";//发送http请求

import {JsonpModule } from '@angular/http';

//省市区三级联动
import { CityPickerModule } from  "ionic2-city-picker";
import {CityPickerService} from '../provider/city-picker';	//联动的一个单独服务
import {HttpModule} from '@angular/http';

import {MyApp} from './app.component';

import {ContactPage} from '../pages/contact/contact';
import {HomePage} from '../pages/home/home';
import {TabsPage} from '../pages/tabs/tabs';

import {PassCountPage} from '../pages/person/bypassCount/passCount';
import {ProductInfoPage} from '../pages/home/ProductInfo/ProductInfo';

import {StatusBar} from '@ionic-native/status-bar';
import {SplashScreen} from '@ionic-native/splash-screen';
import {PersonPage} from "../pages/person/person";
import {addTrenchPage} from '../pages/contact/addTrench/addTrench';
//三级跳转，添加已存在经销商客户
import {inexistDealerPage} from '../pages/contact/addTrench/inexistDealer/inexistDealer';
import {existDealerPage} from "../pages/contact/addTrench/existDealer/existDealer"

import {StoragePage} from "../pages/storages/storage/storage";
import {services} from "../providers/service";
import {LoginPage} from "../pages/login/login";
import {PwdPage} from "../pages/pwd/pwd";
import {NewCreatPage} from "../pages/storages/newcreat/newcreat";
import {PersonalDataPage} from "../pages/personalData/personalData";
import {ModifyDataPage} from "../pages/modifyData/modifyData";
import {ModifyPswPage} from "../pages/modifyPsw/modifyPsw";
import {CollectPage} from "../pages/storages/collect/collect";
import {ResultPage} from "../pages/storages/result/result";
import {ManagementPage} from "../pages/storages/management/management";
import {PopOverPage} from "../pages/storages/popoverPage/popoverPage";
import {KcmodelPage} from "../pages/storages/ckmodel/kcmodel";
import {ActiveModelPage} from "../pages/activeModel/activeModel";
import {CjStatusPage} from "../pages/storages/cjStatus/cjStatus";
//不存在经销商页面产品信息页面
import {productPage} from '../pages/contact/addTrench/inexistDealer/productPage/productPage';
import {productPage2} from '../pages/contact/addTrench/existDealer/productPage/productPage2';

@NgModule({
  declarations: [
    MyApp,
    StoragePage,
    ContactPage,
    HomePage,
    TabsPage,
    
    PersonPage,

    PassCountPage,
    ProductInfoPage,
    addTrenchPage,
    		inexistDealerPage,
    			productPage,
    		existDealerPage,
    			productPage2,
    LoginPage,
    PwdPage,
    NewCreatPage,
    PersonalDataPage,
    ModifyDataPage,
    ModifyPswPage,
    CollectPage,
    ResultPage,
    ManagementPage,
    PopOverPage,
    KcmodelPage,
    ActiveModelPage,
    CjStatusPage

  ],
  imports: [
  	HttpModule,
  	JsonpModule,
    BrowserModule,
    CityPickerModule,

    //省市区联动
    IonicModule.forRoot(MyApp,
    	{tabsHideOnSubPages: 'true',}
		//    	路由跳转不显示底部tab
    	),
    //省市区联动
   
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    StoragePage,
    ContactPage,
    HomePage,
    TabsPage,
    PersonPage,
    
    PassCountPage,
    ProductInfoPage,
    addTrenchPage,
    		inexistDealerPage,
    			productPage,
    		existDealerPage,
    			productPage2,
    LoginPage,
    PwdPage,
    NewCreatPage,
    PersonalDataPage,
    ModifyDataPage,
    ModifyPswPage,
    CollectPage,
    ResultPage,
    ManagementPage,
    PopOverPage,
    KcmodelPage,
    ActiveModelPage,
    CjStatusPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    CityPickerService,
    services,
    servicess
  ]
})
export class AppModule {
}
